package cn.rxmind.dlicense.core.exception;
/**
 *
 * @description 异常工具类
 *
 * @author renxin
 *
 * @email renxinzhiliangzhi@163.com
 * 
 * @date 2019/7/25 14:51
 */
public class DLicenseExceptionFactory {

    private DLicenseExceptionFactory() {}

    public static DLicenseException buildUtryLicenseException(Integer code, String message){

        return new DLicenseException(code,message);
    }

    public static DLicenseException buildUtryLicenseException(DLicenseErrEnum dLicenseErrEnum){

        return new DLicenseException(dLicenseErrEnum);
    }

    public static DLicenseException buildUtryLicenseException(DLicenseErrEnum dLicenseErrEnum, String message){

        return new DLicenseException(dLicenseErrEnum.getCode(),message);
    }

}
